/*
 * @Description: ...
 * @Author: yangli 121029539@qq.com
 * @Date: 2025-02-10 10:15:43
 * @LastEditTime: 2025-02-19 14:41:25
 * @LastEditors: yangli 121029539@qq.com
 * @FilePath: \uniapp\src\api\repair.ts
 */
import request from '@/utils/request'
// 首页机型列表
export function modelList(data: any) {
    return request.get({ url: '/product/spec', data })
}
// 首页机型列表
export function bannerList() {
    return request.get({ url: '/index/index' })
}
// 产品列表
export function goodsList(data: any) {
    return request.post({ url: '/product/items', data })
}

export function apiProductItemsBySpec(data: any) {
    return request.post({ url: '/product/itemsBySpec', data })
}

// 
// 导出一个名为goodsDetail的函数，参数为data，类型为any
export function goodsDetail(data: any) {
    // 发送post请求，url为'/product/info'，参数为data
    return request.post({ url: '/product/info', data })
}
// 投保
export function applyBaoxian(data: any) {
    return request.post({ url: '/insurancePolicy/add', data }, { isAuth: true })
}

export function insurancePolicyexchange(data: any) {
    return request.post({ url: '/insurancePolicy/exchange', data }, { isAuth: true })
}

export function apisavesignimg(data: any) {
    return request.post({ url: '/insurancePolicy/savesignimg', data })
}



// 保单查询
export function searchBaoxian(data: any) {
    return request.post({ url: '/user/bindMobile', data }, { isAuth: true })
}
// 搜索imei
export function searchimei(data: any) {
    return request.get({ url: '/repair/searchimei', data })
}

// 申请报修
export function applyRepair(data: any) {
    return request.post({ url: '/repair/add', data }, { isAuth: true })
}
export function apiRepairHuanxin(data: any) {
    return request.post({ url: '/repair/huanxin', data }, { isAuth: true })
}


// 快递列表
export function deliveryList() {
    return request.get({ url: '/repair/expressList' })
}
// 填写快递
export function fitEpress(data: any) {
    return request.post({ url: '/repair/fillInExpress', data }, { isAuth: true })
}
// 快递详情
export function expressDetail(data: any) {
    return request.post({ url: '/user/bindMobile', data }, { isAuth: true })
}
//维修  详情
export function repairInfo(data: any) {
    return request.get({ url: '/repair/info', data }, { isAuth: true })
}
//保单列表 
export function insuranceList(data: any) {
    return request.post({ url: '/InsurancePolicy/items', data }, { isAuth: true })
}
// 维修列表 
export function repairList(data: any) {
    return request.post({ url: '/repair/items', data }, { isAuth: true })
}


export function apiGetSpecByImei(data: any) {
    return request.get({ url: '/product/getSpecByImei', data })
}


export function apiSearchInsurancePolicy(data: any) {
    return request.get({ url: '/repair/searchInsurancePolicy', data })
}




















